function GetCookie(key) {
  if (document.cookie === "") return null;
  const value = `; ${document.cookie}`;
  const parts = value.split(`; ${key}=`);
  if (parts.length === 2) return parts.pop().split(";").shift();
  else return null;
}
export { GetCookie };
